package com.siyu.servicr;

import com.siyu.UserService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Service;

@RefreshScope
@Service
public class OrderService {

    @Value("${aa}")
    private String aa;

    @DubboReference(version = "1.0")
    private UserService userService;

    public String getUser(){
        return userService.getUser() + aa;
    }

}
